echo off
SET _JAVA_OPTIONS="-XX:+PrintGCDetails"
SET _JAVA_OPTIONS=%_JAVA_OPTIONS% "-Dio.netty.tryReflectionSetAccessible=true"
REM SET _JAVA_OPTIONS=%_JAVA_OPTIONS% -Dcom.sun.management.jmxremote.port=1099
SET _JAVA_OPTIONS=%_JAVA_OPTIONS% "-Dcom.sun.management.jmxremote.ssl=false"
SET _JAVA_OPTIONS=%_JAVA_OPTIONS% "-Dcom.sun.management.jmxremote.authenticate=false" 
SET _JAVA_OPTIONS=%_JAVA_OPTIONS% "-Djava.rmi.server.hostname=0.0.0.0"
REM echo %_JAVA_OPTIONS%

start "netty" java --add-opens java.base/jdk.internal.misc=ALL-UNNAMED --add-exports jdk.internal.le/jdk.internal.org.jline.utils=ALL-UNNAMED "-Dcom.sun.management.jmxremote.port=10001" -cp build/libs/longpoll.jar cn.qpyl.longpoll.netty.Main  
start "vertx" java --add-opens java.base/jdk.internal.misc=ALL-UNNAMED --add-exports jdk.internal.le/jdk.internal.org.jline.utils=ALL-UNNAMED "-Dcom.sun.management.jmxremote.port=10002"  -cp build/libs/longpoll.jar cn.qpyl.longpoll.vertx.Main
start "akka" java --add-opens java.base/jdk.internal.misc=ALL-UNNAMED --add-exports jdk.internal.le/jdk.internal.org.jline.utils=ALL-UNNAMED "-Dcom.sun.management.jmxremote.port=10003"  -cp build/libs/longpoll.jar cn.qpyl.longpoll.akka.Main
start "spring" java --add-opens java.base/jdk.internal.misc=ALL-UNNAMED --add-exports jdk.internal.le/jdk.internal.org.jline.utils=ALL-UNNAMED "-Dcom.sun.management.jmxremote.port=10004"  -jar build/libs/longpoll-spring.jar